package ${package.Mapper};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${package.Entity}.${entity};
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * ${table.comment!} mapper
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
public interface ${table.mapperName} extends BaseMapper<${entity}> {
</#if>
    ${entity} query(@Param("ent") ${entity} ${entity?uncap_first});

    Page${r'<'}${entity}> listWithCond(Page${r'<'}${entity}> page,@Param("ent")${entity} ${entity?uncap_first});

    List${r'<'}${entity}> listWithCond(@Param("ent") ${entity} ${entity?uncap_first});

    int deleteWithCond(@Param("ent") ${entity} ${entity?uncap_first});
}
